import request from '@/utils/request';

const UploadAPI = {
  /**
   * 上传文件
   *
   * @param file
   */
  upload(data) {
    return request({
      url: 'upload/upload',
      method: 'post',
      data: data,
      headers: {
        'Content-Type': 'multipart/form-data',
      },
    });
  },
};

export default UploadAPI;
